using Boo.Lang;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using UnityEngine;

[Serializable]
public class autocalibrate : MonoBehaviour
{
	[Serializable]
	[CompilerGenerated]
	internal sealed class _0024calibrate_0024265 : GenericGenerator<WaitForSeconds>
	{
		public override IEnumerator<WaitForSeconds> GetEnumerator()
		{
			return new _0024();
		}
	}

	public void Start()
	{
		if (PlayerPrefs.GetInt("AutoCalibrate") == 1)
		{
			StartCoroutine(calibrate());
		}
		if (PlayerPrefs.GetInt("Vignetting") == 0 && (bool)GameObject.Find("Vignetting"))
		{
			UnityEngine.Object.Destroy(GameObject.Find("Vignetting"));
		}
	}

	public void Awake()
	{
		Screen.sleepTimeout = -1;
		if (PlayerPrefs.GetInt("FPSLimitOn") == 1)
		{
			Application.targetFrameRate = PlayerPrefs.GetInt("FPSLimit");
		}
		else
		{
			Application.targetFrameRate = 60;
		}
	}

	public IEnumerator calibrate()
	{
		return new _0024calibrate_0024265().GetEnumerator();
	}

	public void Main()
	{
	}
}
